<?php

use yii\db\Migration;
use yii\db\Schema;
/**
 * Class m181026_020559_ADD_FIELD_INCOME
 */
class m181026_020559_ADD_FIELD_INCOME extends Migration
{
    /**
     * {@inheritdoc}
     */
    public function safeUp()
    {
        $this->addColumn('{{income}}', 'remark', Schema::TYPE_STRING. "(1024) NULL COMMENT '备注' AFTER price ");
        $this->addColumn('{{income_claim}}', 'remark', Schema::TYPE_STRING. "(1024) NULL COMMENT '备注' AFTER price ");
        $this->addColumn('{{cost}}', 'remark', Schema::TYPE_STRING. "(1024) NULL COMMENT '备注' AFTER price ");
    }

    /**
     * {@inheritdoc}
     */
    public function safeDown()
    {
        echo "m181026_020559_ADD_FIELD_INCOME cannot be reverted.\n";

        return false;
    }

    /*
    // Use up()/down() to run migration code without a transaction.
    public function up()
    {

    }

    public function down()
    {
        echo "m181026_020559_ADD_FIELD_INCOME cannot be reverted.\n";

        return false;
    }
    */
}
